package com.dfbz.entity;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class User {

    private Long id;
    private String username;
    private String password;
    private String email;
    private String qqOpenid;
    private String wxOpenid;
    private String realName;
    private Long age;
    private String phone;
    private String gender;
    private String info;
    private Date registerTime;          //register_time
    private Date loginTime;
    private String pic;
    private Long look;
    private String isSecret;
    private String deptName;
    private Long deptId;

    // 收藏的文章
    private List<Article> articleList = new ArrayList<>(0);

    // 关注的用户
    private List<User> userList = new ArrayList<>(0);

    // 所属部门
    private Dept dept = new Dept();

    public User(Long id, String username, String password, String email, String qqOpenid, String wxOpenid, String realName, Long age, String phone, String gender, String info, Date registerTime, Date loginTime, String pic, Long look, String isSecret, String deptName, Long deptId, List<Article> articleList, List<User> userList, Dept dept) {

        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.qqOpenid = qqOpenid;
        this.wxOpenid = wxOpenid;
        this.realName = realName;
        this.age = age;
        this.phone = phone;
        this.gender = gender;
        this.info = info;
        this.registerTime = registerTime;
        this.loginTime = loginTime;
        this.pic = pic;
        this.look = look;
        this.isSecret = isSecret;
        this.deptName = deptName;
        this.deptId = deptId;
        this.articleList = articleList;
        this.userList = userList;
        this.dept = dept;
    }

    public User() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQqOpenid() {
        return qqOpenid;
    }

    public void setQqOpenid(String qqOpenid) {
        this.qqOpenid = qqOpenid;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Long getLook() {
        return look;
    }

    public void setLook(Long look) {
        this.look = look;
    }

    public String getIsSecret() {
        return isSecret;
    }

    public void setIsSecret(String isSecret) {
        this.isSecret = isSecret;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public List<Article> getArticleList() {
        return articleList;
    }

    public void setArticleList(List<Article> articleList) {
        this.articleList = articleList;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", qqOpenid='" + qqOpenid + '\'' +
                ", wxOpenid='" + wxOpenid + '\'' +
                ", realName='" + realName + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", gender='" + gender + '\'' +
                ", info='" + info + '\'' +
                ", registerTime=" + registerTime +
                ", loginTime=" + loginTime +
                ", pic='" + pic + '\'' +
                ", look=" + look +
                ", isSecret='" + isSecret + '\'' +
                ", deptName='" + deptName + '\'' +
                ", deptId=" + deptId +
                ", articleList=" + articleList +
                ", userList=" + userList +
                ", dept=" + dept +
                '}';
    }
}
